package com.gs.synedocket.view;

import com.gs.synedocket.apiresult.ApiResultData;
import com.gs.synedocket.db.entity.Docket;
import com.gs.synedocket.db.entity.DocketPhoto;
import com.gs.synedocket.db.entity.UserTruck;

import java.util.List;

public interface ISyncUpload {
    void onSyncUserTruckSuccess(ApiResultData<String> result, List<UserTruck> list, int position);

    void onSyncUserTruckFails(Exception e);

    void onSyncDocketSuccess(ApiResultData<String> result,Docket bean);

    void onSyncDocketFails(Exception e);

    void onUploadFileSuccess(ApiResultData<String> result, Docket bean, List<DocketPhoto> photos, int position, int flag);

    void onUploadFileFails(Exception e);

    void onUploadBase64Success(ApiResultData<String> result,Docket bean,boolean isTakePhoto, int flag);

    void onUploadBase64Fails(Exception e);
}
